﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._20220314
{
    /// <summary>
    ///  获取素材商品列表
    /// </summary>
    public class MaterialListInput
    {
        /// <summary>
        ///  用户编码 【点赞、收藏、购买】
        /// </summary>
        public string userID { get; set; }
        /// <summary>
        /// 导航目录树path
        /// </summary>
        public string folderPath { get; set; }
        /// <summary>
        ///  素材格式
        /// </summary>
        public string materType { get; set; }
        /// <summary>
        ///  是否推荐【全部=-1、推荐=1、未推荐=0】
        /// </summary>
        public int isRecommend { get; set; } = -1;
        /// <summary>
        /// 关键字
        /// </summary>
        public string keyword { get; set; }
        /// <summary>
        ///  创建人id编码
        /// </summary>
        public string createID { get; set; }
        /// <summary>
        ///  状态【-1=全部；0=待发布(私有)；1=待审核；4=已下架；5=已上架（默认）；6=审核未通过；9=待发布之外的所有记录】
        /// </summary>
        [RegularExpression("^((-1)|[0,1,4,5,6,9])$", ErrorMessage = "请按要求传递状态")]
        public int fileStatus { get; set; } = 5;
        /// <summary>
        ///  排序方式【0=创建时间倒序（默认）；1=更新时间倒序】
        /// </summary>
        public int sortType { get; set; }
        /// <summary>
        ///  第几页
        /// </summary>
        [Required]
        public int page { get; set; } = 1;
        /// <summary>
        ///  每页数量
        /// </summary>
        [Required]
        public int rows { get; set; } = 10;
    }
    public class VideoJson
    {
        public string video { get; set; }
    }
}